body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

.search-bar input {
    padding: 5px;
}

.user-actions a {
    color: white;
    margin-left: 15px;
    text-decoration: none;
}

main {
    padding: 20px;
}

.latest-news, .popular-news {
    margin-bottom: 20px;
}

.latest-news h2, .popular-news h2 {
    color: #333;
}

article {
    margin-bottom: 15px;
}

article h3 {
    margin: 0;
}

article h3 a {
    text-decoration: none;
    color: #007bff;
}

article p {
    margin: 5px 0;
    color: #555;
}

footer {
    background-color: #f1f1f1;
    text-align: center;
    padding: 10px 20px;
}

.login-form, .register-form {
    max-width: 300px;
    margin: 0 auto;
}

.login-form h2, .register-form h2 {
    text-align: center;
}

.login-form form, .register-form form {
    display: flex;
    flex-direction: column;
}

.login-form label, .register-form label {
    margin-bottom: 5px;
}

.login-form input, .register-form input {
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-form button, .register-form button {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.login-form button:hover, .register-form button:hover {
    background-color: #0056b3;
}

.login-form p, .register-form p {
    text-align: center;
}

.login-form p a, .register-form p a {
    color: #007bff;
    text-decoration: none;
}
